package com.jsj.service;

import com.jsj.pojo.Device;
import com.jsj.pojo.Type;
import org.springframework.stereotype.Service;

import java.util.List;


public interface DeviceService {
    //type相关
    List<Type> queryAllType();
    List<Type> queryType(String type);
    List<Device> queryListByType(String type);
    Boolean addType(Type type);
    Boolean delTypeById(int id);
    Boolean updateById(Type type);

    //和device详细列表相关
    List<Device> queryDeviceByName(String type,String deviceName);
    Boolean addDeviceByType(Device device);
    Boolean delDeviceById(int deviceId);
    Boolean updateDeviceById(Device device);

    Device queryByDeviceId(int deviceId);
}
